<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript" src="js/i18n/jquery.ui.datepicker-ko.js"></script>
<script type="text/javascript">
	$(function(){
		// Datepicker
		$.datepicker.setDefaults($.datepicker.regional['ko']);
		$('#datepicker').datepicker({
			inline: true,
			showOtherMonths: true,
			selectOtherMonths: true,
			changeMonth: true,
			changeYear: true,
			onSelect: function(dateText, inst) {
				$.ajax({
					type: "POST",
					   url: "jsp/tags.jsp",
					   data: "date="+$.trim(dateText),
					   success: function(msg){
							$("#contentCommons").html(msg).hide();
							$("#contentCommons").fadeIn(500);
					}
				});
			}
		});		
	});
</script>
<div id="datepicker"></div>